package cn.xhjava.crm.settings.mapper;

import cn.xhjava.crm.settings.domain.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {

    int deleteByPrimaryKey(String id) throws Exception;

    int insert(User record) throws Exception;

    int insertSelective(User record) throws Exception;

    User selectByPrimaryKey(String id) throws Exception;

    int updateByPrimaryKeySelective(User record) throws Exception;

    int updateByPrimaryKey(User record) throws Exception;

    User selectUserByLoginActAndPwd(Map<String, Object> map) throws Exception;

    User queryUserByLoginAct(Map<String, Object> map) throws Exception;

    /**
     * 查询所有的用户
     *
     * @return
     */
    List<User> selectAllUsers() throws Exception;
}